package com.hengpeng.itfinbase.persist;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;

import com.hengpeng.common.persist.entity.AbstractTableAutoIdEntity;
import com.hengpeng.common.web.annotation.HtmlInput;
import com.hengpeng.common.web.annotation.HtmlInputType;
import com.hengpeng.itfinbase.en.ArticleGroupType;

/**
 * <pre>
 * 新闻分组,前台新闻显示
 * </pre>
 * 
 * @author chenjian
 * @version 1.0, 2012-7-9
 */
@Entity
public class ArticleGroup extends AbstractTableAutoIdEntity {
    private static final long serialVersionUID = 5834369166564896062L;

    @HtmlInput(label = "名称", type = HtmlInputType.TEXT, index = 1, nullable = false)
    @Column(length = 50)
    private String name;

    @HtmlInput(label = "描述", type = HtmlInputType.TEXT, index = 2, nullable = false)
    @Column(length = 100)
    private String remark;
    /**
     * 分组类型
     */
    @HtmlInput(label = "分组类型", type = HtmlInputType.SELECT, index = 3, nullable = true, labelProperty = "text")
    @Enumerated(javax.persistence.EnumType.STRING)
    private ArticleGroupType articleGroupType;

    public ArticleGroupType getArticleGroupType() {
        return articleGroupType;
    }

    public void setArticleGroupType(ArticleGroupType articleGroupType) {
        this.articleGroupType = articleGroupType;
    }

    public String getName() {
        return name;
    }

    public String getRemark() {
        return remark;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
